package com.yh.correct.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 内部邮箱表 t_system_mailbox
 *
 * @author崔赛赛
 */
public class SystemMailbox {
    /**
     * 发件箱id
     */
    private Integer id;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容
     */
    private String content;
    /**
     * 发送时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date sendTime;
    /**
     * 发送状态
     */
    private Integer status;
    /**
     * 发送人
     */
    private Integer sendId;
    /**
     * 接收人
     */
    private Integer receiveId;
    /**
     * 是否发送
     */
    private Integer ifPublish;

    @Override
    public String toString() {
        return "SystemMailbox{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", sendTime=" + sendTime +
                ", status=" + status +
                ", sendId=" + sendId +
                ", receiveId=" + receiveId +
                ", ifPublish=" + ifPublish +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSendId() {
        return sendId;
    }

    public void setSendId(Integer sendId) {
        this.sendId = sendId;
    }

    public Integer getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(Integer receiveId) {
        this.receiveId = receiveId;
    }

    public Integer getIfPublish() {
        return ifPublish;
    }

    public void setIfPublish(Integer ifPublish) {
        this.ifPublish = ifPublish;
    }
}

